package com.jiumi.baseconfig.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.jiumi.common.annotation.Excel;
import com.jiumi.common.core.domain.BaseEntity;
import lombok.Data;
import lombok.ToString;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import javax.validation.constraints.NotEmpty;
import java.util.Date;

/**
 * 用户信息对象 base_user
 *
 * @author jiumi
 * @date 2023-05-21
 */
@Data
@ToString
public class BaseUser extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long userId;

    /** 账号 */
    @Excel(name = "账号")
//    @NotEmpty(message = "账号不能为空")
    private String userName;

    /** 真实姓名 */
    @Excel(name = "客户姓名")
    @NotEmpty(message = "客户姓名不能为空")
    private String authName;

    /** 密码 */
    @Excel(name = "密码")
//    @NotEmpty(message = "密码不能为空")
    private String password;

    /** 手机号 */
    @Excel(name = "手机号")
    //@NotEmpty(message = "手机号不能为空")
    private String phonenumber;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date loginDate;
    /** 推广人id */
    @Excel(name = "推广人id")
    private Long promoterId;

    /** 推广人 */
    @Excel(name = "推广人")
    private String promoterName;

    /** 接收人ID */
    @Excel(name = "接收人ID")
    private Long recipientId;

    /** 接收人 */
    @Excel(name = "接收人")
    private String recipientName;

    /** 学籍号 */
    @Excel(name = "学籍号")
    private String studentId;

    /** 是否会员 */
    @Excel(name = "是否会员")
    private String isMember;
    private String memberStatus;

    /** 个人简介 */
    private String description;
    private String avatar;
    private String type;
    private String sex;
    private String wxNumber;
    private String age;
    private String education;
    private String remark;

    private String isBuy;

    private String addType;
}
